package com.ck567.netty.chatroom.message

class GroupChatResponseMessage : AbstractResponseMessage {
    var from: String = ""
    private var content: String = ""

//    constructor(success: Boolean, reason: String) : super(success, reason)
//    constructor(from: String, content: String) {
//        this.from = from
//        this.content = content
//    }

    constructor(success: Boolean, reason: String, from: String, content: String) : super(success, reason) {
        this.from = from
        this.content = content
    }

    override fun getMessageType(): Int {
        return Group_ChatResponseMessage
    }

    override fun toString(): String {
        return "GroupChatResponseMessage(from='$from', content='$content', ${super.toString()})"
    }

}